package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库单明细对象 wms_outbound_order_detail
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WmsOutboundOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 出库单ID */
    @Excel(name = "出库单ID")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long itemId;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private BigDecimal requiredQty;

    /** 已分配数量 */
    @Excel(name = "已分配数量")
    private BigDecimal allocatedQty;

    /** 已拣货数量 */
    @Excel(name = "已拣货数量")
    private BigDecimal pickedQty;

    /** 已出库数量 */
    @Excel(name = "已出库数量")
    private BigDecimal shippedQty;

    /** 明细状态 */
    @Excel(name = "明细状态", dictType = "wms_outbound_detail_status")
    private String detailStatus;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setRequiredQty(BigDecimal requiredQty) 
    {
        this.requiredQty = requiredQty;
    }

    public BigDecimal getRequiredQty() 
    {
        return requiredQty;
    }
    public void setAllocatedQty(BigDecimal allocatedQty) 
    {
        this.allocatedQty = allocatedQty;
    }

    public BigDecimal getAllocatedQty() 
    {
        return allocatedQty;
    }
    public void setPickedQty(BigDecimal pickedQty) 
    {
        this.pickedQty = pickedQty;
    }

    public BigDecimal getPickedQty() 
    {
        return pickedQty;
    }
    public void setShippedQty(BigDecimal shippedQty) 
    {
        this.shippedQty = shippedQty;
    }

    public BigDecimal getShippedQty() 
    {
        return shippedQty;
    }
    public void setDetailStatus(String detailStatus) 
    {
        this.detailStatus = detailStatus;
    }

    public String getDetailStatus() 
    {
        return detailStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("tenantId", getTenantId())
            .append("orderId", getOrderId())
            .append("itemId", getItemId())
            .append("supplierId", getSupplierId())
            .append("unit", getUnit())
            .append("requiredQty", getRequiredQty())
            .append("allocatedQty", getAllocatedQty())
            .append("pickedQty", getPickedQty())
            .append("shippedQty", getShippedQty())
            .append("detailStatus", getDetailStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    // 关联查询字段
    /** 商品编码 */
    private String itemCode;

    /** 商品名称 */
    private String itemName;

    /** 供应商名称 */
    private String supplierName;

    /** 库存分配列表 */
    private List<WmsInventoryAllocation> allocationList;

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public List<WmsInventoryAllocation> getAllocationList() {
        return allocationList;
    }

    public void setAllocationList(List<WmsInventoryAllocation> allocationList) {
        this.allocationList = allocationList;
    }
}